﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace com.huigo.Framework.BLL
{
    public class LoginFailedLog
    {
        /// <summary>
        /// 前台用户登录失败日志
        /// </summary>
        /// <param name="type"></param>
        /// <param name="custName"></param>
        /// <param name="custPwd"></param>
        /// <param name="ip"></param>
        /// <returns></returns>
        public static int InsertLoginFailedLog(byte type, string custName, string custPwd, string ip)
        {
            Model.LoginFailedLog loginFailedLog = new com.huigo.Framework.Model.LoginFailedLog();
            loginFailedLog.LogType = type;
            loginFailedLog.LogAccount = custName;
            loginFailedLog.LogPwd = custPwd;
            loginFailedLog.LogCreatedOn = DateTime.Now;
            loginFailedLog.LogIp = ip;
            return Convert.ToInt32(SqlServerDal.LoginFailedLog.Insert(loginFailedLog, null));
        }
    }
}
